<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象（Object）字面量</title>
</head>

<body>
    <p id="demo"></p>
    <script>
        // 对象（Object）字面量 定义一个对象：
        document.getElementById("demo").innerHTML = { firstName: "John", lastName: "Doe", age: 50, eyeColor: "blue" };  //[object Object]
    </script>
</body>

</html>